package com.zuowei.ycy.user.http;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * 收藏
 */
public interface Collection {
    /**
     * 添加收藏
     */
    @POST("Collection/addCollection")
    @FormUrlEncoded
    Call<ResponseBody> addCollection(@Field("m_id") String m_id, @Field("merchant_id") String merchant_id);
    /**
     * 取消收藏
     */
    @POST("Collection/deleteCollection")
    @FormUrlEncoded
    Call<ResponseBody> deleteCollection(@Field("m_id") String m_id, @Field("merchant_id") String merchant_id);


    /**
     * 收藏列表
     * @return
     */
    @FormUrlEncoded
    @POST("Collection/collectionList")
    Call<ResponseBody> collectionList(@Field("m_id") String m_id);

}
